<script src="/assets/admin/js/skins.min.js"></script>
<!--Basic Scripts-->
<script src="/assets/admin/js/jquery.min.js"></script>
<script src="/assets/admin/js/bootstrap.min.js"></script>
<script src="/assets/admin/js/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/assets/lib/layer/layer.js"></script>
<!--Beyond Scripts-->
<script src="/assets/admin/js/beyond.js"></script>
<script>
    $(window).bind("load", function () {

        /*Sets Themed Colors Based on Themes*/
        themeprimary = getThemeColorFromCss('themeprimary');
        themesecondary = getThemeColorFromCss('themesecondary');
        themethirdcolor = getThemeColorFromCss('themethirdcolor');
        themefourthcolor = getThemeColorFromCss('themefourthcolor');
        themefifthcolor = getThemeColorFromCss('themefifthcolor');

    });
    $('#login_out').click(function () {
        $.ajax({
            url: "{{url('admin/login_out')}}",
            type: 'post',
            dataType: 'json',
            success: function (data) {
                if (data.code == 1) {
                    layer.msg(
                        data.msg, {
                            icon: 6,
                            time: 2000
                        }, function () {
                            location.href = data.url;
                        }
                    )
                }
            }
        });
        return false;
    });
</script>